import { danmakuSize } from '../enums/danmakuSize';
import { danmakuType } from '../enums/danmakuType';
import { danmakuPoolType } from '../enums/danmakuPoolType';

export default class danmaku {
    time: number;
    danmakuType: danmakuType;
    textSize: danmakuSize;
    textColor: number;
    sendTime: number;
    poolType: danmakuPoolType;
    senderUIDHash: string;
    id: number;
    index: number;
    text: string;
    textShadowColor: number;
    alphaDuration: number;
    beginAlpha: number;
    beginX: number;
    beginY: number;
    duration: number;
    endAlpha: number;
    endX: number;
    endY: number;
    rotationY: number;
    rotationZ: number;
    translationDuration: number;
}

export class position {
    x1: number;
    y1: number;
    x2: number;
    y2: number;
}

export class xmlItem {
    p: string;
    _type: string;
    _name: string;
    _text: string;
    _attributes: xmlItem;
    _elements: Array<xmlItem>;
}